<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/users' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item v-for="(item, index) in title" :key="index">{{item}}</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card shadow="always">
      <div class="top"><slot name="top"></slot></div>
      <div class="count"><slot name="count"></slot></div>
    </el-card>
  </div>
</template>

<script>
  export default {
    name: 'Carrier',
    props: {
      title: {
        type: Array,
        default() {
          return []
        }
      }
    }
  }
</script>

<style scoped>
  .top {
    margin-bottom: 15px;
  }
</style>